{% load web_pub_simple_tag %}
<!DOCTYPE html>
<html lang="zh-CN">
    <head>
        <meta http-equiv="content-type" content="text/html; charset=utf-8">
        <meta content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=0" name="viewport">
        <meta content="yes" name="apple-mobile-web-app-capable">
        <meta content="black-translucent" name="apple-mobile-web-app-status-bar-style">
        <meta content="telephone=no" name="format-detection">
        <meta name="description" content="">
        <title>运维与开发之路-阿聪的技术博客</title>
        <link rel="stylesheet" type="text/css" href="/statics/web/css/style.css?v=0.0.0">
        <link rel="stylesheet" type="text/css" href="/statics/web/css/normalize.min.css">
        <link rel="stylesheet" type="text/css" href="/statics/web/css/pure-min.css">
        <link rel="stylesheet" type="text/css" href="/statics/web/css/grids-responsive-min.css">
        <link rel="stylesheet" href="/statics/web/css/font-awesome.min.css">
        <script type="text/javascript" src="/statics/web/css/jquery.min.js"></script>
        <link rel="Shortcut Icon" type="image/x-icon" href="/statics/web/images/favicon.ico">
{#        <link rel="apple-touch-icon" href="/apple-touch-icon.png">#}
{#        <link rel="apple-touch-icon-precomposed" href="/apple-touch-icon.png">#}
{#        <link rel="alternate" type="application/atom+xml" href="/atom.xml">#}
    </head>
    <body>
        <div class="body_container">
            <div id="header">
                <div class="site-name">
{#                    <h1 class="hidden">运维开发之路</h1>#}
                    <a id="logo" href="/.">运维与开发之路-阿聪的技术博客</a>
                    <p class="description">行走在运维与开发的道路上,持续学习,付出不亚于他人的努力!</p>
                </div>
                <div id="nav-menu">
                    <a href="/" {% if request.path == "/" %}class="current" {% endif %}><i class="fa fa-home"> 主页</i></a>
                    <a href="/article_list/" {% if request.path != "/" and request.path != "/about/" %}class="current" {% endif %}><i class="fa fa-archive"> 武功秘籍</i></a>
                    <a href="/about/" {% if request.path == "/about/" %}class="current" {% endif %}><i class="fa fa-user"> 关于阿聪</i></a>
{#                    <a href="/atom.xml"><i class="fa fa-rss"> 订阅</i></a>#}
                </div>
            </div>
            <div id="layout" class="pure-g">
                {% block home_page_articles %}
                <div class="pure-u-1 pure-u-md-3-4">
                    <div class="content_container">
                        <div class="post">
                            <h2 class="post-title">
                                <a href="/2017/10/16/debian-下-apt-get-搭建-nginx-php环境/">阿里云 debian 下 apt-get 搭建 nginx+php环境</a>
                            </h2>
                            <div class="post-meta">2017-10-16</div>
                            <div id="test-editormd-view">
                                <textarea id="append-test" style="display:none;">{{ article_obj.content }}</textarea>
                            </div>
                            <p class="readmore">
                                <a href="/{article_url}">阅读全文</a>
                            </p>
                        </div>
                        <div class="post">
                            <h1 class="post-title">
                                <a href="/2017/10/11/Debian-下安装nodeJs-以及-npm-的方法/">Debian 下安装nodeJs 以及 npm 的方法</a>
                            </h1>
                            <div class="post-meta">2017-10-11</div>
                            <div class="post-content">
                                <p>下载nodeJs
                                    <a href="https://nodejs.org/en/download/stable/" target="_blank" rel="external">https://nodejs.org/en/download/stable/</a>
                                    <br>
                                    <img src="http://upload-images.jianshu.io/upload_images/1409498-825df44a9b417d14.png?imageMogr2/auto-orient/strip%7CimageView2/2/w/1240" alt="">
                                </p>
                            </div>
                            <p class="readmore">
                                <a href="/2017/10/11/Debian-下安装nodeJs-以及-npm-的方法/">阅读全文</a>
                            </p>
                        </div>
                        <div class="post">
                            <h1 class="post-title">
                                <a href="/2017/09/30/用Android-Studio开发第一个Xposed模块/">用Android Studio开发第一个Xposed模块（转）</a>
                            </h1>
                            <div class="post-meta">2017-09-30</div>
                            <div class="post-content">
                                <p>最近打算学习Xposed模块的开发。</p>
                                <p>Xposed框架是一款可以在不修改APK的情况下影响程序运行（修改系统）的框架服务，通过替换/system/bin/app_process程序控制zygote进程，使得app_process在启动过程中会加载XposedBridge.jar这个jar包，从而完成对Zygote进程及其创建的虚拟机的劫持。</p>
                            </div>
                            <p class="readmore"><a href="/2017/09/30/用Android-Studio开发第一个Xposed模块/">阅读全文</a></p>
                        </div>
                        <div class="post">
                            <h1 class="post-title"><a href="/2017/09/30/android-Xposed-常用方法和相关API说明/">android Xposed 常用方法和相关API说明（转）</a></h1>
                            <div class="post-meta">2017-09-30</div>
                            <div class="post-content">
                                <h2 id="一、-Api说明"><a href="#一、-Api说明" class="headerlink" title="一、 Api说明"></a><strong>一、 Api说明</strong></h2>
                                <h3 id="1-IXposedHookLoadPackage-java">
                                    <a href="#1-IXposedHookLoadPackage-java" class="headerlink" title="1. IXposedHookLoadPackage.java"></a>
                                    <strong>1. IXposedHookLoadPackage.java</strong>
                                </h3>
                                <p>加载回调接口，在xposed入口类继承，实现handleLoadPackage方法</p>
                            </div>
                            <p class="readmore"><a href="/2017/09/30/android-Xposed-常用方法和相关API说明/">阅读全文</a></p>
                        </div>
                        <div class="post">
                            <h1 class="post-title"><a href="/2017/09/26/coolpad-酷派手机调试androidApp-日志logcat无法打印的解决办法/">
                                coolpad 酷派手机调试androidApp 日志logcat无法打印的解决办法</a>
                            </h1>
                            <div class="post-meta">2017-09-26</div>
                            <div class="post-content">
                                <p>还是google比较好 技术相关的基本第一页就能找到答案！</p>
                                <p>最近用酷派真机调试，logcat在android studio 上面始终打印不出来。</p>
                                <p>原因是机器在出厂时将log的级别做了限制，解决办法如下：</p>
                                <figure class="highlight js">
                                    <table>
                                        <tr>
                                            <td class="gutter">
                                                <pre>
                                                    <div class="line">1</div>
                                                    <div class="line">2</div>
                                                    <div class="line">3</div>
                                                    <div class="line">4</div>
                                                    <div class="line">5</div>
                                                    <div class="line">6</div>
                                                    <div class="line">7</div>
                                                </pre>
                                            </td>
                                            <td class="code">
                                                <pre>
                                                    <div class="line">-&gt; 拨号盘输入*20121220# </div>
                                                    <div class="line"></div>
                                                    <div class="line">-&gt; 选择日志输出级别 </div>
                                                    <div class="line"></div>
                                                    <div class="line">-&gt; 选择Java log level </div>
                                                    <div class="line"></div>
                                                    <div class="line">-&gt; 选择LOGD即可。</div>
                                                </pre>
                                            </td>
                                        </tr>
                                    </table>
                                </figure>
                            </div>
                            <p class="readmore">
                                <a href="/2017/09/26/coolpad-酷派手机调试androidApp-日志logcat无法打印的解决办法/">阅读全文</a>
                            </p>
                        </div>
                        <div class="post">
                            <h1 class="post-title">
                                <a href="/2017/09/23/安卓Activity启动模式图文详解：standard、singleTop、singleTask、singleInstance/">安卓Activity启动模式图文详解：standard、singleTop、singleTask、singleInstance</a>
                            </h1>
                            <div class="post-meta">2017-09-23</div>
                            <div class="post-content">
                                <h3 id="设置一个launchMode">
                                    <a href="#设置一个launchMode" class="headerlink" title="设置一个launchMode"></a>
                                    设置一个launchMode
                                </h3>
                                <p>
                                    一般地，我们可以直接在AndroidManifest.xml<code>&lt;activity&gt;</code>标签的一个属性中设置launchMode，如下：<br>
                                    <figure class="highlight java">
                                        <table>
                                            <tr>
                                                <td class="gutter">
                                                    <pre>
                                                        <div class="line">1</div>
                                                        <div class="line">2</div>
                                                        <div class="line">3</div>
                                                    </pre>
                                                </td>
                                                <td class="code">
                                                    <pre>
                                                        <div class="line">&lt;activity android:name=<span class="string">".SingleTaskActivity"</span></div>
                                                        <div class="line">android:label=<span class="string">"singleTask launchMode"</span></div>
                                                        <div class="line">android:launchMode=<span class="string">"singleTask"</span>&gt;</div>
                                                    </pre>
                                                </td>
                                            </tr>
                                        </table>
                                    </figure>
                                </p>
                            </div>
                            <p class="readmore">
                                <a href="/2017/09/23/安卓Activity启动模式图文详解：standard、singleTop、singleTask、singleInstance/">阅读全文</a>
                            </p>
                        </div>
                        <div class="post">
                            <h1 class="post-title">
                                <a href="/2017/09/23/按home返回桌面后再次打开APP禁止重新渲染的方法/">按home返回桌面后再次打开APP禁止重新渲染的方法</a>
                            </h1>
                            <div class="post-meta">2017-09-23</div>
                            <div class="post-content">
                                <p>最近在做一个通过安卓webView模拟PC浏览器登录网页版微信，从而达到群发功能的项目。</p>
                                <p>当使用<code>react-native-background-timer</code>组件定时获取webView信息的时候，出现一个让人头疼的问题。那就是每次点击HOME键从桌面返回APP的时候视图总是重新加载，以至于同一个定时器会出现叠加的效果。</p>
                            </div>
                            <p class="readmore"><a href="/2017/09/23/按home返回桌面后再次打开APP禁止重新渲染的方法/">阅读全文</a></p>
                        </div>
                        <div class="post">
                            <h1 class="post-title"><a href="/2017/09/22/基于coding的git仓库的pages服务免费搭建个人hexo博客/">基于coding Git仓库pages服务免费搭建个人hexo博客</a></h1>
                            <div class="post-meta">2017-09-22</div>
                            <div class="post-content">
                                <p>一、先在自己的电脑上安装<code>hexo</code><a href="https://hexo.io/" target="_blank" rel="external">官网</a></p>
                                <figure class="highlight plain">
                                    <table>
                                        <tr>
                                            <td class="gutter">
                                                <pre>
                                                    <div class="line">1</div>
                                                    <div class="line">2</div>
                                                    <div class="line">3</div>
                                                    <div class="line">4</div>
                                                    <div class="line">5</div>
                                                </pre>
                                            </td>
                                            <td class="code">
                                                <pre>
                                                    <div class="line">$ npm install hexo-cli -g</div>
                                                    <div class="line">$ hexo init blog</div>
                                                    <div class="line">$ cd blog</div>
                                                    <div class="line">$ npm install</div>
                                                    <div class="line">$ hexo server #可以简写 hexo s</div>
                                                </pre>
                                            </td>
                                        </tr>
                                    </table>
                                </figure>
                            </div>
                            <p class="readmore"><a href="/2017/09/22/基于coding的git仓库的pages服务免费搭建个人hexo博客/">阅读全文</a></p>
                        </div>
                        <div class="post">
                            <h1 class="post-title">
                                <a href="/2017/09/22/react-native获取组件xy坐标和width-height高宽的方法/">react-native获取组件xy坐标和width height高宽的方法</a>
                            </h1>

                            <div class="post-meta">2017-09-22</div>
                            <div class="post-content">
                                <p>
                                    <strong>问题：</strong>
                                    最近同事做一个可以滑动的选择菜单，当点击右侧下拉框选择后无法定位到指定位置。<br>
                                    <img src="http://owo1qaqm1.bkt.clouddn.com/2017-09-22-15060578724743.jpg?imageView2/1/w/300" alt=""><br>
                                    <img src="http://owo1qaqm1.bkt.clouddn.com/2017-09-22-15060579400603.jpg?imageView2/1/w/300" alt="">
                                </p>
                            </div>
                            <p class="readmore">
                                <a href="/2017/09/22/react-native获取组件xy坐标和width-height高宽的方法/">阅读全文</a>
                            </p>
                        </div>
                        <div class="post">
                            <h1 class="post-title">
                                <a href="/2017/09/21/Hexo-生成-about页面-和-atom-xmlRss订阅文件的方法/">Hexo 生成 about页面 和 atom.xmlRss订阅文件的方法</a>
                            </h1>
                            <div class="post-meta">2017-09-21</div>
                            <div class="post-content">
                                <h3 id="如何生成-about-页面">
                                    <a href="#如何生成-about-页面" class="headerlink" title="如何生成 about 页面"></a>
                                    如何生成 about 页面
                                </h3>
                                <figure class="highlight js">
                                    <table>
                                        <tr>
                                            <td class="gutter">
                                                <pre><div class="line">1</div></pre>
                                            </td>
                                            <td class="code">
                                                <pre>
                                                    <div class="line">hexo
                                                        <span class="keyword">new</span> page
                                                        <span class="string">"about"</span>
                                                    </div>
                                                </pre>
                                            </td>
                                        </tr>
                                    </table>
                                </figure>
                            </div>
                            <p class="readmore">
                                <a href="/2017/09/21/Hexo-生成-about页面-和-atom-xmlRss订阅文件的方法/">阅读全文</a>
                            </p>
                        </div>
                        <nav class="page-navigator">
                            <span class="page-number current">1</span>
                            <a class="page-number" href="/page/2/">2</a>
                            <a class="extend next" rel="next" href="/page/2/">下一页</a>
                        </nav>
                    </div>
                </div>
                {% endblock %}
                <div class="pure-u-1 pure-u-md-1-4">
                    <div id="sidebar">
                        <div class="widget">
                            <form action="//www.google.com/search" method="get" accept-charset="utf-8" target="_blank" class="search-form">
                                <input type="text" name="q" maxlength="20" placeholder="Search"/>
                                <input type="hidden" name="sitesearch" value="http://www.bteam.me"/>
                            </form>
                        </div>

                        <div class="widget">
                            <div class="widget-title">
                                <i class="fa fa-folder-o"> 分类</i>
                            </div>
                            <ul class="category-list">
                                <li class="category-list-item">
                                    <ul class="category-list-child">
                                        {% show_column_list %}
                                    </ul>
                                </li>

                            </ul>
                        </div>
                        <div class="widget">
                            <div class="widget-title"><i class="fa fa-star-o"> 标签</i></div>
                            <div class="tagcloud">
                                {% show_tag_list %}
                            </div>
                        </div>
                        <div class="widget">
                            <div class="widget-title"><i class="fa fa-file-o"> 最近文章</i></div>
                            <ul class="post-list">
                                {% show_new_articles %}
                            </ul>
                        </div>

                        {% if request.path == "/" %}
                        <div class="widget">
                            <div class="widget-title"><i class="fa fa-external-link"> 盟友</i></div>
                            <ul>
{#                                <li><a href="https://github.com/kmlidc/" title="My Github" target="_blank">My Github</a></li>#}
                            </ul>
                        </div>
                        {% endif %}
                    </div>
                </div>
                <div class="pure-u-1 pure-u-md-3-4">
                    <div id="footer">Copyright © 2017
                        <a href="/." rel="nofollow">运维与开发之路</a>
                    </div>
                </div>
            </div>
            <a id="rocket" href="#top" class="show"></a>
            <script type="text/javascript" src="/statics/web/js/totop.js?v=0.0.0" async></script>

        </div>
    </body>
</html>